package com.ldx.common.enums;

import lombok.Data;
import org.springframework.http.HttpStatus;

/**
 * 业务状态码
 */
public enum  BizStatusEnum {

    UNKNOW_EXECPTION(10000,"系统未知异常"),

    VALID_EXECPTION(10001,"参数校验失败");

    private Integer code;
    private String msg;

    BizStatusEnum(Integer code,String msg){
        this.code = code;
        this.msg = msg;
    }

    public Integer getCode() {
        return code;
    }

    public String getMsg() {
        return msg;
    }
}
